.room-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  position: relative;
  overflow: hidden;
  color: #ffffff;

  &::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
  }

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    z-index: 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.room-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.player-ip {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.players-container {
  width: 100%;
  max-width: 350px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.player-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  }
  
  &:last-child {
    margin-bottom: 0;
  }
}

.player-label {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.player-status {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  padding: 5px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.actions-container {
  width: 100%;
  max-width: 350px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.action-btn {
  width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: bold;
  color: #667eea;
  background: #ffffff;
  border: none;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
  }

  &:hover::before {
    transform: translateX(100%);
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.start-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 25px rgba(56, 249, 215, 0.3);

  &:hover {
    box-shadow: 0 12px 30px rgba(56, 249, 215, 0.4);
  }
}

.close-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);

  &:hover {
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
  }
}

.connection-status {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.connection-status Text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.waiting-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

/* 动画效果 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}